<?php define('cityfran_DIR','Plugins/cityfran/');define('cityfran_VERSION','1.2');define('cityfran_DATE','29 April 2011');include('codebase-php\BotClass.php');include('codebase-php\bot_api.php');include('codebase-php\Utils.php');include('codebase-php\LocalDataClass.php');include('codebase-php\GetSettingsFromXml.php');AutoStart($argv);include('cityfran_class.php');include('ajax.php');$fcn = new cityfranPlugin();if(isset($getP['action'])){if ($getP['action']=='refresh'){$ajax=new cityfranAjax();$ajax->GetForm();}if($getP['action']=='showForm'){$fcn->ld->userId=$CurrentUserId;$fcn->ld->EasyConnect();$fcn->GetForm();}if($getP['action']=='saveAll'){$fcn->ld->userId=$CurrentUserId;$fcn->ld->EasyConnect();$fcn->ld->SavePlSettings('cityfran',$postdata);}if($getP['action']=='saveNewTypes'){$fcn->ld->userId=$CurrentUserId;$fcn->ld->EasyConnect();$fcn->aT($postdata);}if($getP['action']=='resetTypes'){$fcn->ld->userId=$CurrentUserId;$fcn->ld->EasyConnect();$fcn->rT();}} ?>
